home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / comms / hs_inst3.arj / HS-WC26.ARJ / HS-U.BAT < prev    next >
DOS Batch File  |  1993-08-25  |  2KB  |  37 lines

  1. :         External Protocol Upload Example
  2. :
  3. :         Uploads using external protocols are handled in a slightly
  4. :         different manner, and multiple file transfers are not permitted.
  5. :         At the time of the upload the caller is asked for the name of the
  6. :         file to upload followed by the file area where the new upload
  7. :         should be placed.  A caller may choose from any file area to which
  8. :         he has upload rights as specified by his security level in
  9. :         MAKEWILD.
  10. :
  11. :         The previous batch parameters of %1 through %3 are used for the
  12. :         same purposes, but since only one file may be uploaded it is always
  13. :         the %3 parameter.  The %4 parameter is assigned to the full drive
  14. :         and path of the file area to receive the new file, and %5 is the
  15. :         full drive, path plus the new filename.  As an example of these two
  16. :         new parameters let's assume a caller is uploading a file named
  17. :         NEWFILE.TXT to file area "E".  Let's further assume that file area
  18. :         "E" is located in C:\WILDCAT\UPLOADS.  The parameters passed as %4
  19. :         and %5 are as follows:
  20. :
  21. :         %4   C:\WILDCAT\UPLOADS
  22. :         %5   C:\WILDCAT\UPLOADS\NEWFILE.TXT
  23. :
  24. :         Now let's look at a sample upload batch file and review its
  25. :         contents.
  26. :
  27.           CD \WILDCAT\EP
  28. :                        makes sure that we are in the external protocol
  29. :                        directory
  30. :
  31.           HSLINK -P%2 -B%1 -U%5
  32. :                        runs the HSLINK program with command
  33. :                        line arguments as required.  in this case the -U
  34. :                        parameter forces a single incoming file to match
  35. :                        the filename given by the user prior to uploading.
  36. :
  37.